CC := g++ -I$(BOOST_LIB) -D_LINUX_ -DBOOST_ALL_NO_LIB -g
TargetDir := ../build/bin/
OutDir := ../build/lib/

all: boost_lib.o
	mkdir -p $(TargetDir)
	mkdir -p $(OutDir)
	make -C server -f ../Makefile.in "CC=$(CC) " "OutDir=../$(OutDir)"
	make -C command -f ../Makefile.in "CC=$(CC)" "OutDir=../$(OutDir)"
	ar rcs $(TargetDir)libgeneral.a $(wildcard $(OutDir)*.o)

boost_lib.o: boost_lib.cpp
	$(CC) -c -DBOOST_ALL_NO_LIB -o $(OutDir)$@ $<
